package com.site.wisdom_construction.service.trainingCheckModule;

import com.site.wisdom_construction.dao.trainingCheckModule.TrainExamRecordsDao;
import com.site.wisdom_construction.entity.trainingCheckModule.TrainExamRecords;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/18
 * @Description
 */
@Service
public class TrainExamRecordsService implements TrainExamRecordsDao {
    @Autowired
    private TrainExamRecordsDao trainExamRecordsDao;

    @Override
    public int insertTrainExamRecords(Map map) {
        return trainExamRecordsDao.insertTrainExamRecords(map);
    }

    @Override
    public int deleteTrainExamRecords(Map map) {
        return trainExamRecordsDao.deleteTrainExamRecords(map);
    }

    @Override
    public int updateTrainExamRecords(Map map) {
        return trainExamRecordsDao.updateTrainExamRecords(map);
    }

    @Override
    public List<TrainExamRecords> findTrainExamRecordsByPage(Map map) {
        return trainExamRecordsDao.findTrainExamRecordsByPage(map);
    }

    @Override
    public long Total(Map map) {
        return trainExamRecordsDao.Total(map);
    }

    @Override
    public List<TrainExamRecords> findTrainExamRecordsByPagePerson(Map map) {
        return trainExamRecordsDao.findTrainExamRecordsByPagePerson(map);
    }

    @Override
    public long totalByPerson(Map map) {
        return trainExamRecordsDao.totalByPerson(map);
    }
}
